$(function(){
	paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
	showCondition(true);
	
	if(typeof(paramTabPage[tabId].previous)=="undefined"){
		$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].title);
	}else{
		if(paramTabPage[tabId].previous=="depGroup"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].depGroupName+"指标");
		}else if(paramTabPage[tabId].monitorType=="mdc"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].mdcCode+"指标");
		}else if(paramTabPage[tabId].monitorType=="adrg"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].adrgCode+"指标");
		}else if(paramTabPage[tabId].monitorType=="drgs"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].drgCode+"指标");
		}
		
	}
		
	
	getQuotas("ywcDisLineDep", loadData,"dep");
	
	function loadData(totalQuota){
		//全院指标 (1.mdc 2.All)
		loadHospQuota(paramTabPage[tabId].monitorType,totalQuota,"depgroupallQuotasId","ywcDisLineDepTotal");
		//加载并拼接下半部分div布局
		loadDRGsQuota(totalQuota,"科室","depgroupquotasId");
		//病种下的科室
		loadDRGsQuotaData(totalQuota,"dep",true,null,"ywcDisLineDepDetail");
	}
});